From af1064e927ed5b3b1bacea008495f814b9bd064c Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 19 Mar 2025 10:20:25 +0100 Subject: [PATCH] luci-app-keepalived: do not restart keepalived on user notification change The content of the file is executed at the next event, so it is not necessary to reload keepalived if the user notification has changed. Signed-off-by: Florian Eckert --- .../luci-static/resources/view/keepalived/notification.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js index 613971d9e3..c12a63be8e 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js @@ -16,8 +16,6 @@ return view.extend({ return fs.write('/etc/keepalived.user', value).then(function(rc) { document.querySelector('textarea').value = value; ui.addNotification(null, E('p', _('Contents have been saved.')), 'info'); - - return fs.exec('/etc/init.d/keepalived', [ 'reload' ]); }).catch(function(e) { ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message))); }); -- 2.30.2